package com.vegetable.modules.entity.baseData;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 分类信息实体类
 * </p>
 * @author Administrator
 */
@NoArgsConstructor
@AllArgsConstructor
@TableName("category_info")
@Data
public class CategoryDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @JsonProperty("category_name")
    private String categoryName;

    @JsonProperty("parent_id")
    private Long parentId;

    @JsonProperty("sort_order")
    private Integer sortOrder;

    @JsonProperty("is_hot")
    private Integer isHot;

    @JsonProperty("category_type")
    private String categoryType;

    @JsonProperty("storage_tips")
    private String storageTips;

    @JsonProperty("create_by")
    private String createBy;

    @JsonProperty("create_time")
    private Date createTime;

    @JsonProperty("update_by")
    private String updateBy;

    @JsonProperty("update_time")
    private Date updateTime;
}
